<?php
namespace app\validate;

use think\facade\Request;
use think\Validate;

class Permission extends  Validate{


    protected $rule =   [

        'name' => 'require',
        'cname'=>'require',
        'fname'=>'require',
        'pid'=>'require',
    ];

    protected $message  =   [
        'name.require' => '权限名称不能为空',
        'cname.regex' => '控制器名称不能为空',
        'fname.require'     => '方法不能为空',
        'pid.require'     => '父级不能为空',

    ];
}